home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8887 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: newsfeed.internetmci.com!gatech!gt-news!news
  2. From: Chris Lanciani <lanciani@ee.gatech.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: Wildcard Expansion in Unix
  5. Date: Wed, 06 Mar 1996 14:35:16 -0500
  6. Organization: Georgia Institute of Technology
  7. Message-ID: <313DE8F4.1478@ee.gatech.edu>
  8. NNTP-Posting-Host: tecate.eedsp.gatech.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/712)
  13.  
  14. Does anyone know of a way to perform wildcard expansion, in C,
  15. on unix platforms?  That is, if I write a program that accepts 
  16. filenames as input arguments, how can I make it handle 
  17. "?" and "*" correctly?
  18.  
  19. I am aware of the findfirst() and findnext() functions for the 
  20. PC (with Borland's compiler, at least), but the portability 
  21. table for these functions does not include unix systems.  I
  22. also know that Borland includes a .obj file that can be linked
  23. with the program that does the wildcard expansion for you. 
  24. Does such a thing exist with gcc on unix?
  25.  
  26. Thanks for any hints.
  27. -- 
  28.  
  29. Chris
  30.  Lanciani
  31. lanciani@eedsp.gatech.edu
  32.